import { h } from 'vue'
// 重写h函数用于按钮的显隐
export const createH = (tagName: any, show: boolean, handleClick: () => void, text: string) => {
  return h(
    tagName,
    {
      type: 'primary',
      quaternary: true,
      style: show ? { display: 'inline' } : { display: 'none' },
      onClick: handleClick
    },
    {
      default: () => text
    }
  )
}
